package com.gitee.lw114514.webapp_memorandium.service.AddService.Impl;

import com.gitee.lw114514.webapp_memorandium.dao.TaskDao;
import com.gitee.lw114514.webapp_memorandium.service.AddService.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddServiceImpl implements AddService{
    @Autowired
    private TaskDao taskDao;

    @Override
    public Boolean addTask(String taskDescription, String taskDate) {
        // 调用DAO层添加任务
        System.out.println("(service)添加任务：" + taskDescription + " " + taskDate);
        return taskDao.addTask(taskDescription, taskDate);
    }

}
